﻿using System.Collections.ObjectModel;

namespace WPFBehaviorLibrary.Examples
{
	class SimpleViewModel
	{
		public ObservableCollection<Person> People { get; private set; }

		public SimpleViewModel()
		{
			this.People = new ObservableCollection<Person>();

			this.People.Add(new Person() { FirstName = "Fred", LastName = "Jones", PhoneNumber = "555-1694", Email = "fred@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "Shaggy", LastName = "Rogers", PhoneNumber = "555-8219", Email = "shaggy@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "Daphne", LastName = "Blake", PhoneNumber = "555-1250", Email = "daphne@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "Velma", LastName = "Dinkley", PhoneNumber = "555-2907", Email = "velma@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "Scooby", LastName = "Doo", PhoneNumber = "555-8219", Email = "scooby@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "Scrappy", LastName = "Doo", PhoneNumber = "555-3591", Email = "scrappy@mysterymachine.com" });
			this.People.Add(new Person() { FirstName = "John", LastName = "Withers", PhoneNumber = "555-9081", Email = "oldmanwithers@hauntedamusmentpark.com" });
		}
	}
}
